import request from '@/utils/request'
// 获取员工列表数据
export function getEmployeesAPI(params) {
  return request({
    url: '/sys/user',
    params
  })
}
// 删除员工数据
export function delEmployeesAPI(id) {
  return request({
    url: `/sys/user/${id}`,
    method: 'DELETE'
  })
}
// 新增员工数据
export function addEmployeesAPI(data) {
  return request({
    url: '/sys/user',
    method: 'POST',
    data
  })
}
// 给员工分配角色方法
export function setRoleAPI(data) {
  return request({
    url: '/sys/user/assignRoles',
    method: 'PUT',
    data
  })
}
